package com.zqh.myfmmall.clients;

import com.zqh.myfmmall.fallback.UserAddrQueryClientFallback;
import com.zqh.myfmmall.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.ArrayList;
import java.util.List;

/**
 * @Description :
 * @Author :kono淇杭哒、
 * @Create 2022-02-22 20:02
 */
@FeignClient(value = "user-addr-query",fallbackFactory = UserAddrQueryClientFallback.class)
public interface UserAddrQueryClient{
    @PostMapping("addr/retrieveByUid")
    Result getByUid(@RequestBody String userId);

    @GetMapping("addr/retrieve/{addrId}")
    Result getById(@PathVariable("addrId") String addrId);

}
